<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
说明：这个页面用于用户在前台提交有效url宝贝或者活动链接，可以选择分类存入数据库在后台列表显示等待处理
<?php
print_r($cats_array);
?>

<form action="<?php
echo site_url('home/url_submit');

?>" method="post">
<p>促销宝贝</p>
<label>名称</label><input name="name" type="text" />
<br>
<label>链接</label><input name="url" type="text" />
<br>
<label>图像链接</label><input name="imgurl" type="text" />
<br>
<label>分类</label><select name="cat">
    <?php
foreach ($cats_array as $key => $value) {
    echo "<option value =\"{$value["id"]}\">{$value["name"]}</option>";
}   
    ?>
    

</select>
<input name="type" type="hidden" value="0" />
<input name="submit" type="submit" />
</form>
<br>
<form action="<?php
echo site_url('home/url_submit');

?>" method="post">
<p>促销活动</p>
<label>名称</label><input name="name" type="text" />
<br>
<label>链接</label><input name="url" type="text" />
<br>
<label>图像链接</label><input name="imgurl" type="text" />
<br>
<label>分类</label><select name="cat">
    <?php
foreach ($cats_array as $key => $value) {
    echo "<option value =\"{$value["id"]}\">{$value["name"]}</option>";
}   
    ?>

</select>
<input name="type" type="hidden" value="1" />
<input name="submit" type="submit" />
</form>

</body>
</html>
